package util

import (
	"crypto/sha1"
	"encoding/hex"
)

func GetDataSha(data string) string {
	hashes := sha1.New()
	hashes.Write([]byte(data))
	hash := hashes.Sum(nil)
	return hex.EncodeToString(hash)
}
